Skip to content

Add the "Shop" example - #1138

Open
4ian wants to merge 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-shop
Open

4ian wants to merge 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-shop

Conversation

@4ian

@4ian 4ian commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

A coin clicker with three shops of the new Shop extension (GDevelop-extensions#2386, art in GDevelop-assets#780), to try the shops in a simple game.

Shop example

The shops

  • Upgrades (Jelly Pop list, the complete one):
    • "Upgrades" tab: "Tap power" (10 levels, the price grows by 1.6 at each level) and "Helper" (coins per second, 5 levels). Also "Golden touch", locked until Tap power reaches level 5, unlocked by an event.
    • "Skins" tab: the equipped skin changes the coin you tap.
    • "Gems" tab: coin packs bought with gems, bought again and again.
  • Daily deals (Woodland list, the simple one): 2 items, no tab, "Shrink to the items". A mystery chest gives 3 to 8 gems and can be bought again; a map can be bought once.
  • Market (Toybox grid): 100 stickers made by the events in an array variable (a loop), then added with "Add items from a variable". It scrolls with a drag, the mouse wheel, the scrollbar or the keyboard.

The money is shown by two currency counters of the Shop extension in the HUD. "Not enough money!" and "Locked..." are shown with floating texts when "A purchase failed". The money and the items are saved ("Save the items in a variable"). "Restart" shows that the game is saved, and "Reset" deletes the save.

Gameplay tests

All 5 pass with the GDevelop CLI.

  • Tapping the coin gives coins.
  • Buying "Tap power" by touching its price button: the price is taken, and a tap gives 2 coins. Escape closes the shop.
  • The locked "Golden touch" can not be bought, then it is unlocked at Tap power 5. A skin bought with a touch is equipped on the coin.
  • The market has the 100 stickers, scrolls when dragged, and Enter buys the focused sticker.
  • Two mystery chests give gems, and the money and the items are loaded after a restart.

npx jest scripts/ passes.

@github-actions

Copy link
Copy Markdown
Contributor

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants